import axios from 'axios'

export const get = (url, params) => {
    return axios.get(url, {
        params
    })
}

export const post = (url, params) => {
    return axios.post(url, {
        ...params
    })
}

export const _delete = (url, params) => {
    return axios.delete(url, {
        params
    })
}

export const _put = (url, params) => {
    return axios.put(url, {
        ...params
    })
}

export const _patch = (url, params) => {
    return axios.patch(url, {
        ...params
    })
}